package com.dsy.xiangcun_manage.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsy.tools.common.utils.QueryObj;
import com.dsy.tools.entity.TbFood;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dsy
 * @since 2023-03-04
 */
@Component
public interface TbFoodMapper extends BaseMapper<TbFood> {
    IPage<TbFood> getAllFood(Page<TbFood> page, @Param("we") QueryWrapper<QueryObj> wrapper);
    TbFood getFoodById(Integer foodId);

}
